import {defineStore} from 'pinia'
import {ref} from 'vue'
export const useTestStore = defineStore('testStore',() =>{
    // 数据
    let count = ref(0)
    // 方法 action
    const addCount = (addCount) =>{
        count.value +=addCount
    }
    const handleClose = (refs)=> {
        refs.value.hide();
    }
    // getter

    return {
        count,
        addCount,
        handleClose
    }
})